//
//  ABWebViewController.swift
//  hEhL
//
//  Created by 本 on 16/5/14.
//  Copyright © 2016年 本. All rights reserved.
//

import UIKit
import WebKit

class ABWebViewController: UIViewController {
    var url : NSURL? = NSURL(string: "http://www.baidu.com")
   private lazy var wv : WKWebView = {
        let webView = WKWebView()
            return webView
        
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        let webView = WKWebView(frame: self.view.bounds)
        view.addSubview(webView)
        self.wv = webView
       let request = NSURLRequest(URL: url!)
//        [webView loadRequest:request];
        webView.loadRequest(request)

        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
